package com.tfb.rong;

import java.io.Serializable;
import java.util.Date;
import org.codehaus.jackson.map.annotate.JsonDeserialize;
import org.codehaus.jackson.map.annotate.JsonSerialize;

public class Users implements Serializable {

    private static final long serialVersionUID = -435536761958871517L;

    private String id;

    private String name;

    private String nickname;

    private Integer sex;

    private Integer age;

    private String mobileCode;

    private String address;

    private String tel;

    private Date dob;

    private String email;

    private String hino;

    private Integer type;

    private String keyword;

    private String qq;

    private String webchat;

    private String othercontactName;

    private String othercontactRelation;

    private String othercontactTel;

    private String school;

    private String personalsign;

    private String hobit;

    private String password;

    private String newpassword;

    private Integer status;

    private String position;

    private String employeeid;

    private Integer employeetype;

    private Integer policyread;
    private Date lastmodify;

    private String header;

    public static final int CUSTOMER = 1;
    public static final int EMPLOYEE = 2;
    public static final int NONE = 0;
    public static final int NORMAL_USER = 1;
    public static final int ADMIN_USER = 2;
    public static final String NORMAL_KEYWORDS = ",createassessment,queryassessment,getassessment,listassessment,modifyassessment,annotateassessment,";

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getNewpassword() {
        return newpassword;
    }

    public void setNewpassword(String newpassword) {
        this.newpassword = newpassword;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getMobileCode() {
        return mobileCode;
    }

    public void setMobileCode(String mobileCode) {
        this.mobileCode = mobileCode == null ? null : mobileCode.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }

    @JsonSerialize(using = CustomJsonDateSerializer.class)
    public Date getDob() {
        return dob;
    }

    @JsonDeserialize(using = CustomJsonDateDeserializer.class)
    public void setDob(Date dob) {
        this.dob = dob;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getHino() {
        return hino;
    }

    public void setHino(String hino) {
        this.hino = hino == null ? null : hino.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword == null ? null : keyword.trim();
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq == null ? null : qq.trim();
    }

    public String getWebchat() {
        return webchat;
    }

    public void setWebchat(String webchat) {
        this.webchat = webchat == null ? null : webchat.trim();
    }

    public String getOthercontactName() {
        return othercontactName;
    }

    public void setOthercontactName(String othercontactName) {
        this.othercontactName = othercontactName == null ? null : othercontactName.trim();
    }

    public String getOthercontactRelation() {
        return othercontactRelation;
    }

    public void setOthercontactRelation(String othercontactRelation) {
        this.othercontactRelation = othercontactRelation == null ? null : othercontactRelation.trim();
    }

    public String getOthercontactTel() {
        return othercontactTel;
    }

    public void setOthercontactTel(String othercontactTel) {
        this.othercontactTel = othercontactTel == null ? null : othercontactTel.trim();
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school == null ? null : school.trim();
    }

    public String getPersonalsign() {
        return personalsign;
    }

    public void setPersonalsign(String personalsign) {
        this.personalsign = personalsign == null ? null : personalsign.trim();
    }

    public String getHobit() {
        return hobit;
    }

    public void setHobit(String hobit) {
        this.hobit = hobit == null ? null : hobit.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position == null ? null : position.trim();
    }

    public String getEmployeeid() {
        return employeeid;
    }

    public void setEmployeeid(String employeeid) {
        this.employeeid = employeeid == null ? null : employeeid.trim();
    }

    public Integer getEmployeetype() {
        return employeetype;
    }

    public void setEmployeetype(Integer employeetype) {
        this.employeetype = employeetype;
    }

    public Integer getPolicyread() {
        return policyread;
    }

    public void setPolicyread(Integer policyread) {
        this.policyread = policyread;
    }

    public Date getLastmodify() {
        return lastmodify;
    }

    public void setLastmodify(Date lastmodify) {
        this.lastmodify = lastmodify;
    }

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header == null ? null : header.trim();
    }
}
